<#assign packageModel=projPackage.entity valuePrefix="#{"
        serviceFullPackage=projPackage.projPackage+"."+projPackage.service
        daoFullPackage="account.dao." +tableInfo.modelClassName+"Mapper"
        modelFullPackage="account.entity." +tableInfo.modelClassName
        >
package account.service;

import java.util.List;
import java.util.Optional;
import ${modelFullPackage};

/**
 * @Description : 服务层接口，注意自定义代码写在最后，不要插在中间
 * @Author : chanchaw
 * @Date : ${.now?date} ${.now?time}
 */
public interface ${tableInfo.modelClassName}Service {
    ${tableInfo.modelClassName} insert(${tableInfo.modelClassName} record);
    ${tableInfo.modelClassName} insertSelective(${tableInfo.modelClassName} record);
    List<${tableInfo.modelClassName}> multiInsert(List<${tableInfo.modelClassName}> list);
    int updateByPrimaryKey(${tableInfo.modelClassName} record);
    int updateByPrimaryKeySelective(${tableInfo.modelClassName} record);
    <#list tableInfo.fieldInfoList as field>
    <#if field.primaryKey=true>
    // 根据主键删除
    int deleteByPrimaryKey(${field.javaType} ${field.fieldName});
    // 根据主键查询
    ${tableInfo.modelClassName} selectByPrimaryKey(${field.javaType} ${field.fieldName});
    </#if>
    </#list>
    List<${tableInfo.modelClassName}> selectAll();
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}